History-Sensitive Error Recovery
نویسندگان
چکیده
We present a novel approach to incremental recovery from lexical and syntactic errors in an interactive software development environment. Unlike existing techniques, we utilize the history of changes to the program to discover the natural correlation between user modifications and errors detected during incremental lexical and syntactic analysis. Our technique is non-correcting—the analysis refuses to incorporate invalid modifications, while still permitting correct changes to be applied. Errors are presented to the user simply by highlighting the invalid changes. The approach is automated—no user action is required to detect or recover from errors. Multiple textual and structural edits, arbitrary timing of incremental analysis, multiple errors per analysis, and nested errors are supported. Historybased error recovery is language independent and is compatible with the best known methods for incremental lexing and parsing, adding neither time nor space overhead to those algorithms. Effective integration with the environment’s history services ensures that other tools can efficiently discover regions of the program (un)affected by errors, and that any transformations of the program required to isolate or present errors are themselves efficiently reversible operations. Keywords— Error recovery, software development environments, incremental parsing, incremental lexing, development log, program presentation
منابع مشابه
Evaluation of the quality of postoperative recovery and its predictors in the elderly undergoing surgery
Introduction: Surgery is very sensitive in the elderly and more important than the surgery itself is the quality of its recovery, which is very important in determining its predictors in geriatric nursing. The aim of this study was to determine the quality of recovery after surgery and its predictors in the elderly undergoing surgery at Imam Hossein Hospital in Tehran in 1400. Materials and Met...
متن کاملAdaptive Error Recovery in cdma2000 1xEV-DO Mobile Broadcast Networks
We analyze the performance of MAC-layer Reed-Solomon error-recovery in the cdma2000 1xEV-DO Broadcast and Multicast Services (BCMCS) environment, with respect to the size of the error control block (ECB) and the air-channel condition, and establish the relationship between ECB size, error-recovery capacity and service latency. Real-time traffic, such as voice and video streaming, is very sensit...
متن کاملA New Formulation for Cost-Sensitive Two Group Support Vector Machine with Multiple Error Rate
Support vector machine (SVM) is a popular classification technique which classifies data using a max-margin separator hyperplane. The normal vector and bias of the mentioned hyperplane is determined by solving a quadratic model implies that SVM training confronts by an optimization problem. Among of the extensions of SVM, cost-sensitive scheme refers to a model with multiple costs which conside...
متن کاملError-Sensitive Proof-Labeling Schemes
Proof-labeling schemes are known mechanisms providing nodes of networks with certificates that can be verified locally by distributed algorithms. Given a boolean predicate on network states, such schemes enable to check whether the predicate is satisfied by the actual state of the network, by having nodes interacting with their neighbors only. Proof-labeling schemes are typically designed for e...
متن کاملNatural and Flexible Error Recovery for Generated Parsers
Parser generators are an indispensable tool for rapid language development. However, they often fall short of the finesse of a hand-crafted parser, built with the language semantics in mind. One area where generated parsers have provided unsatisfactory results is that of error recovery. Good error recovery is both natural, giving recovery suggestions in line with the intention of the programmer...
متن کامل